package com.campus.mapping;

import com.campus.model.TCourse;
import com.campus.model.TCourseLearnUnit;
import com.campus.model.dto.TCourseCreateDto;
import com.campus.model.dto.TCourseLearnUnitCreateDto;
import com.campus.model.vo.TCourseLearnUnitSelectVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface LearnUnitMapping {
    LearnUnitMapping INSTANCE = Mappers.getMapper(LearnUnitMapping.class);

    TCourseLearnUnit CreatetoLearnUnit(TCourseLearnUnitCreateDto createDto);

    TCourseLearnUnitSelectVo toSelectVo(TCourseLearnUnit learnUnit);

    List<TCourseLearnUnitSelectVo> toSelectVoList(List<TCourseLearnUnit> learnUnitList);




}
